echo off
if (%1 == '') goto NoInstance
goto Instance

:NoInstance
echo installing Sample Query database to (local)
osql -S (local) -E -i CreateQueryDatabase.sql
goto End

:Instance
echo installing Sample Query database to (local)\%1
osql -S (local)\%1 -E -i CreateQueryDatabase.sql
goto End

:End
echo.
echo Sample Query database installer completed
